package net.sourceforge.m2settings.model;

import javax.swing.table.TableModel;

/**
 * An <code>ExtendableTableModel</code> is a <code>TableModel</code> in whi rows
 * can be added or removed.
 * 
 * @author regis
 *
 */
public interface ExtendableTableModel extends TableModel {
	/**
	 * Adds a new row in the data model.
	 * @param element
	 */
	public void addRow();

	/**
	 * Remove row at the given indexes.
	 * @param rowIndexes
	 */
	public void removeRows(int[] rowIndexes);
	
	/**
	 * Removes the row placed at the given index.
	 * @param index
	 */
//	/public void removeRow(int index);
	
	/**
	 * The descriptive name of the element manipulated by this model.
	 */
	public String getElementName();
}
